<template>
    <div class="home">
        <el-container>
      <el-header><Header /></el-header>
      <el-container>
        <el-aside :width="userStore.w+'px'"><Aside /></el-aside>
        <el-main>
          <Breadcrumb />
          <routerView></routerView>
        </el-main>
      </el-container>
    </el-container>
    </div>
</template>

<script setup lang="ts">
import Aside from "./components/Aside.vue"
import Header from "./components/Header.vue"
import Breadcrumb from "@/components/Breadcrumb.vue"
import { useUserStore} from "@/store/user"
const userStore = useUserStore();
</script>

<style scoped lang="less">
.home {
  height: 100%;
  :deep(.el-header) {
    height: 70px;
    background-color: #409eff;
  }  
     :deep(.el-menu) {
   border: 0;
  }   
  :deep(.el-aside),:deep(.el-main)  {
    height: calc(100vh - 70px);
    &::-webkit-scrollbar {
      width: 0;
    }
  }  
  :deep(.el-aside) {
    background-color: #304156;
    transition: all .3s ease-in-out;
  } 
}
</style>